local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1
L0_1 = {}
L0_1.group_id = 240009001
L1_1 = {}
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1001
L2_1.gadget_id = 70900037
L3_1 = {}
L3_1.x = -62.337
L3_1.y = -8.029
L3_1.z = 96.646
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 180.176
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L3_1 = GadgetState
L3_1 = L3_1.GearStart
L2_1.state = L3_1
L3_1 = {}
L3_1.config_id = 1002
L3_1.gadget_id = 70900037
L4_1 = {}
L4_1.x = -63.942
L4_1.y = -8.02
L4_1.z = 90.39
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 90.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = GadgetState
L4_1 = L4_1.GearStart
L3_1.state = L4_1
L4_1 = {}
L4_1.config_id = 1005
L4_1.gadget_id = 70360020
L5_1 = {}
L5_1.x = -64.962
L5_1.y = -1.186
L5_1.z = 90.309
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 85.656
L5_1.y = 180.0
L5_1.z = 87.953
L4_1.rot = L5_1
L4_1.level = 1
L5_1 = {}
L5_1.config_id = 1007
L5_1.gadget_id = 70360019
L6_1 = {}
L6_1.x = -65.067
L6_1.y = -5.065
L6_1.z = 90.287
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 90.0
L6_1.y = 90.0
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L6_1 = {}
L6_1.config_id = 1008
L6_1.gadget_id = 70220013
L7_1 = {}
L7_1.x = -57.892
L7_1.y = -8.072
L7_1.z = 99.329
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L7_1 = {}
L7_1.config_id = 1009
L7_1.gadget_id = 70220025
L8_1 = {}
L8_1.x = -57.941
L8_1.y = -8.07
L8_1.z = 100.217
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 271.025
L8_1.y = 180.0
L8_1.z = 180.0
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L8_1.config_id = 1010
L8_1.gadget_id = 70220013
L9_1 = {}
L9_1.x = -55.703
L9_1.y = -8.111
L9_1.z = 100.868
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 42.338
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L9_1.config_id = 1011
L9_1.gadget_id = 70220014
L10_1 = {}
L10_1.x = -58.365
L10_1.y = -8.055
L10_1.z = 101.407
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 0.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L10_1 = {}
L10_1.config_id = 1012
L10_1.gadget_id = 70220013
L11_1 = {}
L11_1.x = -46.392
L11_1.y = -7.984
L11_1.z = 83.85
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 0.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L11_1 = {}
L11_1.config_id = 1013
L11_1.gadget_id = 70220014
L12_1 = {}
L12_1.x = -46.036
L12_1.y = -7.984
L12_1.z = 85.421
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 0.0
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L12_1 = {}
L12_1.config_id = 1014
L12_1.gadget_id = 70220025
L13_1 = {}
L13_1.x = -46.423
L13_1.y = -7.984
L13_1.z = 84.004
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 275.558
L13_1.y = 139.394
L13_1.z = 130.739
L12_1.rot = L13_1
L12_1.level = 1
L13_1 = {}
L13_1.config_id = 1015
L13_1.gadget_id = 70360016
L14_1 = {}
L14_1.x = -64.615
L14_1.y = -3.044
L14_1.z = 90.285
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 0.0
L14_1.z = 278.818
L13_1.rot = L14_1
L13_1.level = 1
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
L1_1[9] = L10_1
L1_1[10] = L11_1
L1_1[11] = L12_1
L1_1[12] = L13_1
gadgets = L1_1
L1_1 = {}
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1001006
L2_1.name = "GADGET_STATE_CHANGE_1006"
L3_1 = EventType
L3_1 = L3_1.EVENT_GADGET_STATE_CHANGE
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_1006"
L2_1.action = "action_EVENT_GADGET_STATE_CHANGE_1006"
L1_1[1] = L2_1
triggers = L1_1
L1_1 = {}
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 1001
L5_1 = 1002
L6_1 = 1005
L7_1 = 1007
L8_1 = 1008
L9_1 = 1009
L10_1 = 1010
L11_1 = 1011
L12_1 = 1012
L13_1 = 1013
L14_1 = 1014
L15_1 = 1015
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
L3_1[11] = L14_1
L3_1[12] = L15_1
L2_1.gadgets = L3_1
L3_1 = {}
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "GADGET_STATE_CHANGE_1006"
L3_1[1] = L4_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L1_1[1] = L2_1
suites = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  if 1005 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.GearStop
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      goto lbl_11
    end
  end
  L2_2 = false
  do return L2_2 end
  ::lbl_11::
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_1006 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 1001
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 1002
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_1006 = L1_1
